package com.chinaisafe.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chinaisafe.base.mybatisplus.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * SysUser
 * Description：用户实体类
 *
 * @author xuefu.shu
 * @date  2024-07-15 09:33:58
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_user")
@Schema(name = "SysUser", description = "用户")
public class SysUser extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "账号_id")
    @TableField("sys_account_id")
    private Long sysAccountId;

    @Schema(description = "用户扩展信息_id")
    @TableField("sys_user_extend_id")
    private Long sysUserExtendId;

    @Schema(description = "账号")
    @TableField("`account`")
    private String account;

    @Schema(description = "昵称")
    @TableField("nick_name")
    private String nickName;

    @Schema(description = "行政部门id")
    @TableField("administration_dept_id")
    private Long administrationDeptId;

    @Schema(description = "手机号")
    @TableField("mobile")
    private String mobile;

    @Schema(description = "邮箱")
    @TableField("mail")
    private String mail;

    @Schema(description = "身份证")
    @TableField("identity_card")
    private String identityCard;

    @Schema(description = "帐号状态（0正常 1停用）")
    @TableField("`status`")
    private Short status;

    @Schema(description = "头像")
    @TableField("avatar")
    private String avatar;

    @Schema(description = "签名")
    @TableField("signature")
    private String signature;

    @Schema(description = "用户类别 1, 超级管理员 2, 平台管理员 3, 企业管理员  4, 企业用户")
    @TableField("user_type")
    private Integer userType;

    @Schema(description = "人脸")
    @TableField("face")
    private String face;

    @Schema(description = "IMEI")
    @TableField("imei")
    private String imei;

}
